import request from "@/plugins/request";
let pre = "/personal/set";
if (process.env.NODE_ENV !== "development") {
    pre = "/api/sa/prslcenter" + pre;
}

// 查询个人中心菜单 
export function personalCenterMenu (params) {
    return request({
        url: `${pre}/queryPersonMenu`,
        method: "get",
        params
    });
}
// 根据用户账号查看用户信息
export function viewUserInfo (data) {
    return request({
        url: `${pre}/showLoginUserInfo`,
        method: "post",
        data
    });
}
// 根据登陆用户id修改用户信息
export function modifyUserInfo (data) {
    return request({
        url: `${pre}/editLoginUserInfo`,
        method: "post",
        data
    });
}
// 新增投诉建议（反馈意见）
export function addFeedback (data) {
    let prefix = "";
    if (process.env.NODE_ENV !== "development") {
        prefix = "/api/ps/framework";
    }
    return request({
        url: `${prefix}/support/assist/addAssistAdvise`,
        method: "post",
        data
    });
}